package empstest;

import edu.rjxy.xjdx.emps.common.domain.User;
import edu.rjxy.xjdx.emps.dao.UserDao;
import edu.rjxy.xjdx.emps.dao.UserDaoImpl;

public class UserDaoTest {
    public static void main(String[] args) {
        UserDao userDao =  new UserDaoImpl();
        User admin = userDao.selectUserByLoginName("test11");
        String pwd = "test";
        if(admin==null){
            System.out.println("用户名不存在");
        }else{
            if(admin.getPassword().equals(pwd)){
                System.out.println("OK");
            }else {
                System.out.println("密码错误");
            }
        }
    }
}
